//
//  Config.h
//  Together
//
//  Created by Wang Shuguang on 12-12-7.
//  Copyright (c) 2012年 Dawn. All rights reserved.
//

#ifndef Together_Config_h
#define Together_Config_h

#define SCREEN_4_INCH           (SCREEN_HEIGHT == 568)                          // 4寸Retina
#define SCREEN_WIDTH			([[UIScreen mainScreen] bounds].size.width)     // Screen width
#define SCREEN_HEIGHT			([[UIScreen mainScreen] bounds].size.height)    // Screen height
#define MAINCONTENTHEIGHT       (SCREEN_HEIGHT - 20 - 44)                       // Content height

// 判断系统版本是否大于x.x
#define IOSVersion_3_2			([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2)
#define IOSVersion_4			([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0)
#define IOSVersion_5			([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0)
#define IOSVersion_6			([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)

//常用函数
#define RESOURCEFILE(x,y)       [[NSBundle mainBundle] pathForResource:x ofType:y]


#define TIMEOUT 20

#define SAVEFILEPATH @"CacheDataFiles"
#define SAVECACHEPATH @"ContentCache"
#define NETEASYCONTENT @"http://c.3g.163.com/nc/article/"
#define QIUBAIIMAGEPATH @"http://img.qiushibaike.com/system/pictures/"
#endif
